#ifndef unigame_Material_h
#define unigame_Material_h

#include "Component.h"
#include "config/Def.h"

namespace unigame
{
	class Texture;
	class Material: public Component
	{
	public:
		Material();
		~Material(){};

		int32u renderOrder()
		{
			return m_renderOrder;
		}

		void renderOrder(int32u order)
		{
			m_renderOrder = order;
		}

		Texture* texture()
		{
			return m_texture;
		}

		void texture(Texture* tex)
		{
			m_texture = tex;
		}

	private:
		int32u m_renderOrder;
		Texture* m_texture;
	};
}

#endif